package main

import (
	"fmt"
	"net/http"
	"time"
)

func main() {
	http.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
		fmt.Printf("%s enter health \n", time.Now().Format("2006-01-02 15:04:05"))
		_, _ = w.Write([]byte("health"))
	})

	http.HandleFunc("/info", func(w http.ResponseWriter, r *http.Request) {
		_, _ = w.Write([]byte("user info"))
	})

	http.ListenAndServe(":8081", nil)
}
